-
Notifications
You must be signed in to change notification settings - Fork 716
SONARJAVA-4960 False positive for S1854 #5378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
19d09dc to
947f918
Compare
|
This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically |
java-checks/src/test/java/org/sonar/java/checks/DeadStoreCheckTest.java
Outdated
Show resolved
Hide resolved
...-checks-test-sources/default/src/main/files/non-compiling/checks/UnusedVariablesFPCheck.java
Show resolved
Hide resolved
...-checks-test-sources/default/src/main/files/non-compiling/checks/UnusedVariablesFPCheck.java
Outdated
Show resolved
Hide resolved
|
|
This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically |
|
|
||
| @Override | ||
| public boolean isMethodSymbol() { | ||
| return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I flipped it to false and re-run unit tests (SymbolsTest) and everything passed. Could we unit test it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a test, however flipping it back to false makes DeadStoreCheckTest.test_incomplete_semantic fail
java-checks/src/test/java/org/sonar/java/checks/DeadStoreCheckTest.java
Outdated
Show resolved
Hide resolved
eb0e8ef to
b23c2de
Compare
|
Addressed both issues in d78ed6b |
|




Uh oh!
There was an error while loading. Please reload this page.